package com.cst.intercepterdemo.exceptions;

/**
 * <ul>
 * <li>文件名称 : com.cst.intercepterdemo.exceptions.ExpressionNotExistException
 * </li>
 * <li>版权所有 : 版权所有(C)2016-2020</li>
 * <li>公 司 : CST</li>
 * <li>创建时间 : 2016/12/8</li>
 * <li>修改记录 : </li>
 * </ul>
 * 类说明：
 *
 * @author Allen
 * @version 1.0
 */
public class ExpressionNotExistException extends RuntimeException {

    private String key;

    public ExpressionNotExistException(String key) {
        this.key = key;
    }

    public ExpressionNotExistException(String message, String key) {
        super(message);
        this.key = key;
    }

    public ExpressionNotExistException(String message, Throwable cause, String key) {
        super(message, cause);
        this.key = key;
    }

    public ExpressionNotExistException(Throwable cause, String key) {
        super(cause);
        this.key = key;
    }

    public ExpressionNotExistException(String message, Throwable cause, boolean enableSuppression, boolean writableStackTrace, String key) {
        super(message, cause, enableSuppression, writableStackTrace);
        this.key = key;
    }

    public String getKey() {
        return key;
    }

}
